﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using DevExpress.XtraPivotGrid;
using System.Collections.Generic;
using DXApplicationTangche.UC.成品出库单.service;
using System.Data;
using DXApplicationTangche.Utils;
using DevExpress.XtraGrid.Demos.util;
using DXApplicationTangche.UC.订单一览新.订单预览新.service;
using DXApplicationTangche.UC.订单一览新.辅料.service;
using DXApplicationTangche.UC.款式尺寸;
using mendian;
using DXApplicationTangche.DTO;
using DXApplicationTangche.UC.货号管理.service;
using DXApplicationTangche.UC.项目流程.Service;
using DXApplicationTangche.UC.订单一览新.销售确认单;

namespace DXApplicationTangche.report
{
    public partial class XtraReport未入库成衣总计 : DevExpress.XtraReports.UI.XtraReport
    {
        public XtraReport未入库成衣总计(List<BatchExecuteRecordSummaryReportDTO> 导出batchExecuteRecordSummaryReportDTOs)
        {
            InitializeComponent();
            this.xrTableCell导出时间.Text = DateTime.Now.ToString();
            this.DataSource = 导出batchExecuteRecordSummaryReportDTOs;
            this.BindData(导出batchExecuteRecordSummaryReportDTOs);
        }

        /// <summary>
        /// 绑定表头
        /// </summary>
        private void BindData(List<BatchExecuteRecordSummaryReportDTO> 导出batchExecuteRecordSummaryReportDTOs)
        {
            this.xrTableCell款号.DataBindings.Add("Text", 导出batchExecuteRecordSummaryReportDTOs, "styleCode");
            this.xrTableCell面料号.DataBindings.Add("Text", 导出batchExecuteRecordSummaryReportDTOs, "materialCode");
            this.xrTableCell尺码.DataBindings.Add("Text", 导出batchExecuteRecordSummaryReportDTOs, "styleSizeCd");
            this.xrTableCell数量.DataBindings.Add("Text", 导出batchExecuteRecordSummaryReportDTOs, "quantity");
            this.xrPictureBox样衣图.DataBindings.Add("Image", 导出batchExecuteRecordSummaryReportDTOs, "sampleImage");
        }
    }

}
